Optimal. Leaf size=12 \[ -\frac{\log (\cos (c+d x))}{d} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.0306763, antiderivative size = 12, normalized size of antiderivative = 1., number of steps used = 2, number of rules used = 2, integrand size = 24, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.083, Rules used = {4334, 260} \[ -\frac{\log (\cos (c+d x))}{d} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 4334
Rule 260
Rubi steps
\begin{align*} \int \frac{\cos (c+d x)}{\csc (c+d x)-\sin (c+d x)} \, dx &=\frac{\operatorname{Subst}\left (\int \frac{x}{1-x^2} \, dx,x,\sin (c+d x)\right )}{d}\\ &=-\frac{\log (\cos (c+d x))}{d}\\ \end{align*}
Mathematica [A] time = 0.007376, size = 12, normalized size = 1. \[ -\frac{\log (\cos (c+d x))}{d} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A] time = 0.041, size = 13, normalized size = 1.1 \begin{align*} -{\frac{\ln \left ( \cos \left ( dx+c \right ) \right ) }{d}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A] time = 1.11038, size = 32, normalized size = 2.67 \begin{align*} -\frac{\log \left (\sin \left (d x + c\right ) + 1\right ) + \log \left (\sin \left (d x + c\right ) - 1\right )}{2 \, d} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A] time = 0.487465, size = 31, normalized size = 2.58 \begin{align*} -\frac{\log \left (-\cos \left (d x + c\right )\right )}{d} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int \frac{\cos{\left (c + d x \right )}}{- \sin{\left (c + d x \right )} + \csc{\left (c + d x \right )}}\, dx \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [B] time = 1.15391, size = 35, normalized size = 2.92 \begin{align*} -\frac{\log \left ({\left | \sin \left (d x + c\right ) + 1 \right |}\right ) + \log \left ({\left | \sin \left (d x + c\right ) - 1 \right |}\right )}{2 \, d} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]